xmalloc: return unused full pages on multi-page allocations
authorJan Beulich <jbeulich@suse.com>
Thu, 13 Oct 2011 08:03:43 +0000 (10:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Oct 2011 08:03:43 +0000 (10:03 +0200)
commitb829a0ff5794ee5b0f96a0c872f6a4ed7b1007c7
tree0f86021d74a5fc61fc0badd2c142d64cb90ba396
parentddbb942359ebec0d96a73a90495e0b29a19266f9
xmalloc: return unused full pages on multi-page allocations

Certain (boot time) allocations are relatively large (particularly when
building with high NR_CPUS), but can also happen to be pretty far away
from a power-of-two size. Utilize the page allocator's (other than
Linux'es) capability of allowing to return space from higher-order
allocations in smaller pieces to return the unused parts immediately.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/xmalloc_tlsf.c